import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import moment from "moment"
import VueLazyload from "vue-lazyload";

import bus from '@/assets/js/Bus'

import request from '@/utils/request'
import "./assets/css/base.css"
import "@/utils/antDesign"

import clickoutside from '@/directive/clickBlankCloseBox'

Vue.directive('clickoutside', clickoutside)

Vue.use(VueLazyload, {
  preLoad: 1.3,
  // error: 'dist/error.png',
  loading: require('@/assets/img/imgLoading.gif'),
  attempt: 1
})

Vue.config.productionTip = false;

Vue.prototype.$request = request
Vue.prototype.$bus = bus
Vue.prototype.$moment = moment


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");